<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var moveZeroes = function(nums) {
				nums.sort((a, b) => b ? 0 : -1);
				return nums;
			};
			console.log(moveZeroes([0, 1, 0, 3, 12]));
		</script>
	</body>
</html>
